import request from '../axios'

export default {
  // 登录
  login(data) {
    return request({
      url: '/admin/login',
      method: 'post',
      data
    })
  },
  
  // 注册
  register(data) {
    return request({
      url: '/admin/register',
      method: 'post',
      data
    })
  },
  
  // 重置密码
  resetPassword(data) {
    return request({
      url: '/admin/resetPassword',
      method: 'post',
      data
    })
  }
}